package com.farsunset.cim.nio.model;

import java.io.Serializable;

public class ResponseFile implements Serializable {

	private static final long serialVersionUID = -1425307876096494974L;

	public ResponseFile() {

	}

	public ResponseFile(long start, String file_md5, String file_url,
			String code) {
		super();
		this.start = start;
		this.file_md5 = file_md5;
		this.file_url = file_url;
		this.end = "1";
		this.progress = 100;
		this.code = code;
	}

	public ResponseFile(long start, String file_md5, String file_url) {
		super();
		this.start = start;
		this.file_md5 = file_md5;
		this.file_url = file_url;
		this.end = "1";
		this.progress = 100;
	}

	public ResponseFile(long start, String file_md5, long progress,String code) {
		super();
		this.start = start;
		this.file_md5 = file_md5;
		this.end = "0";
		this.progress = (int) progress;
		this.code = code;
	}

	/**
	 * 开始 读取点
	 */
	private long start;
	/**
	 * 文件的 MD5值
	 */
	private String file_md5;
	/**
	 * 文件下载地址
	 */
	private String file_url;
	/**
	 * 上传是否结束   1完成  0未完成
	 */
	private String end;
	/**
	 * 进度
	 */
	private int progress;

	// 成功或者失败的标志位
	private String code;

	@Override
	public String toString() {
		return "ResponseFile [code=" + code + ", end=" + end + ", file_md5="
				+ file_md5 + ", file_url=" + file_url + ", progress="
				+ progress + ", start=" + start + "]";
	}

	public long getStart() {
		return start;
	}

	public void setStart(int start) {
		this.start = start;
	}

	public String getFile_md5() {
		return file_md5;
	}

	public void setFile_md5(String file_md5) {
		this.file_md5 = file_md5;
	}

	public String getFile_url() {
		return file_url;
	}

	public void setFile_url(String file_url) {
		this.file_url = file_url;
	}

	public String getEnd() {
		return end;
	}

	public void setEnd(String end) {
		this.end = end;
	}

	public int getProgress() {
		return progress;
	}

	public void setProgress(int progress) {
		this.progress = progress;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

}
